app.service('brandService',function($http){
	
	this.findPage = function(page,size){
		
		return $http.get('../brand/findPage.do?page='+page+'&size='+size);
	}
	
	this.findOne = function(id){
		
		return $http.get('../brand/findOne.do?id='+id);
	}
	
	this.save = function(entity){
		
		return $http.post('../brand/'+methodName+'.do',entity);
	}
	
	this.del = function(ids){
		
		return $http.get('../brand/delete.do?'+ids);
	}
	
	this.search = function(page,size,searchEntity){
		
		return $http.post('../brand/search.do?page='+page+'&size='+size,searchEntity);
	}
	
})